package com.myspringmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/header")
@Controller
public class RequestHeaderController {

    @RequestMapping("requestHeaderApp")
    public String requestHeaderApp(@RequestHeader("User-Agent") String userAgent) {
        System.out.println("userAgent" + userAgent);
        return "success";
    }
}
